package com.dotndot.view.activity;

import android.os.Bundle;
import android.os.Message;
import android.view.View;
import android.widget.Button;
import com.dotndot.R;
import com.dotndot.custom.widget.ViewOnClickListener;

public class InitialEntry extends BaseActivity
{

    private Button nextBtn = null;

    @Override
    protected void onCreate( Bundle savedInstanceState )
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.initial_entry);

        viewInit();
    }

    @Override
    public void viewInit()
    {
        nextBtn = (Button) findViewById(R.id.next);
        nextBtn.setVisibility(View.VISIBLE);
        nextBtn.setOnClickListener(new ViewOnClickListener()
        {            
            @Override
            public void viewOnClick( View v )
            {
                dbAPI.setInitialEntry(true);
                utilAPI.callActivity(InitialEntry.this, Login.class);
                finish();
            }
        });
    }

    @Override
    public void receiveServerMsg( Message msg )
    {
        // TODO Auto-generated method stub

    }

    @Override
    public void onClick( View view )
    {
        if( view == nextBtn )
        {
            dbAPI.setInitialEntry(true);
            utilAPI.callActivity(this, Login.class);
            finish();
        }
    }
}
